import request from '@/utils/request'

/**
 * 查询所有用户
 */
export const userList = () => {
  return request({
    url: '/sys/user'
  })
}

/**
 * 设备报警监控表条件分页查询
 */
export const equipmenmonitor = (params, page, size) => {
  return request({
    url: `/opermgt/equipmenmonitor/search/${page}/${size}`,
    method: 'POST',
    data: params
  })
}

/**
 * 设备报警处理表保存
 */
export const Addmonitor = (data) => {
  return request({
    url: '/opermgt/equipmendeal',
    method: 'POST',
    data: data
  })
}
/**
 * 设备报警处理表解除警报
 */
export const clearAlarm = (data) => {
  return request({
    url: '/opermgt/equipmendeal/aduit',
    method: 'POST',
    data: data
  })
}
/**
 * 设备报警处理全流程查询
 */
export const equipmentQuery = (params) => {
  return request({
    url: `/opermgt/equipmendeal/getListInfo?alarmNo=${params}`,
    data: params
  })
}
/**
 * 设备报警处理图片查询
 */
export const photaQuery = (params) => {
  return request({
    url: `/opermgt/equipmendeal/getEquipmenmonitor?id=${params}`,
    data: params
  })
}
/**
 * 设备报警启停状态修改
 */
export const editStatus = (equipmentId) => {
  return request({
    url: `/opermgt/assemanagement/updateStatus/${equipmentId}`,
    method: 'POST'
    // data: data
  })
}

// 查询摄像头接口  ---视频监控模块
export const VideoTree = (data) => {
  return request({
    url: `/opermgt/assemanagement/getAllcamera?pipeGallery=${data}`,
  })
}
/**
 * 问题管理处理全流程查询
 */
export const problemQuery = (params) => {
  return request({
    url: '/opermgt/problemInfo/findProcess',
    method: 'POST',
    data: params
  })
}
